package com.pctx.rbac.service;

import com.pctx.rbac.pojo.Permission;

import java.util.List;

/**
 * Created by chason on 2018/2/24.11:26
 */
public interface PermissionService {
    List<Permission> getByCompanyUuid(String companyId) throws Exception;

    List<Permission> getByCompanyUuid4NotOwned(String companyId) throws Exception;

    boolean addCompanyPermission(String companyUuid, Integer permissionUuid) throws Exception;

    Permission getByUuid(String uuid) throws Exception;

    boolean add(Permission permission) throws Exception;

    Permission getById(Integer id) throws Exception;

    Permission getByCompanyUuidAndParentId(String companyUuid, Integer parentId) throws Exception;

    boolean delByUuid(String uuid) throws Exception;

    boolean update(Permission permission) throws Exception;

    List<Permission> getByRoleUuid(String roleUuid) throws Exception;

}
